#define _CRT_SECURE_NO_WARNINGS
#pragma warning(disable:6031)
#include<stdio.h>
typedef struct Peo
{
	int number;
	char year[10];
	int age;
	double a;
	double b;
	double c;
}Peo;
int main()
{
	Peo peo[20] = { {1,"1996-97",18,1.9,1.3,7.6},
	{2,"1997-98",19,3.1,2.5,15.4},
	{3,"1998-99",20,5.3,3.8,19.9},
	{4,"1999-00",21,6.3,4.9,22.5},
	{5,"2000-01",22,5.9,5,28.5},
	{6,"2001-02",23,5.5,5.5,25.2},
	{7,"2002-03",24,6.9,5.9,30},
	{8,"2003-04",25,5.5,5.1,24},
	{9,"2004-05",26,5.9,6,27.6},
	{10,"2005-06",27,5.3,4.5,35.4},
	{11,"2006-07",28,5.7,5.4,31.6},
	{12,"2007-08",29,6.3,5.4,28.3},
	{13,"2008-09",30,5.2,4.9,26.8},
	{14,"2009-10",31,5.4,5,27},
	{15,"2010-11",32,5.1,4.7,25.3},
	{16,"2011-12",33,5.4,4.6,27.9},
	{17,"2012-13",34,5.6,6,27.3},
	{18,"2013-14",35,4.3,6.3,13.8},
	{19,"2014-15",36,5.7,5.6,22.3},
	{20,"2015-16",37,3.7,2.8,17.6} };
	int num1, num2;
	int i = 0;
	Peo p1 = { 0 };
	scanf("%d %d", &num1, &num2);
	if (num1 > num2)
	{
		int tmp = num1;
		num1 = num2;
		num2 = tmp;
	}
	Peo max = peo[num1 - 1];
	for (i = num1 - 1; i < num2; i++)
	{
		if (peo[i].c > max.c)
		{
			p1 = max;
			max = peo[i];
		}
		else if (peo[i].c > p1.c)
		{
			p1 = peo[i];
		}
	}
	printf("%s %-d %-4.1lf %-3.1lf %-3.1lf\n", max.year, max.age, max.c, max.a, max.b);
	printf("%s %-d %-4.1lf %-3.1lf %-3.1lf\n", p1.year, p1.age, p1.c, p1.a, p1.b);
	return 0;
}
